<!-- main -->
<template>
  <router-view v-slot="{ Component, route }">
    <transition appear name="fade-transform" mode="out-in">
      <component :is="Component" :key="route.fullPath"></component>
    </transition>
  </router-view>
</template>

<script lang="ts" setup></script>
<style>
.fade-enter-active,
.fade-leave-active {
  transition: all 0.2s ease;
}

.fade-enter-from,
.fade-leave-active {
  opacity: 0;
}
</style>
<style lang="scss" scoped></style>
